package com.kaikeba.t31ticket.ticket.service.impl;

import com.kaikeba.t31core.common.utils.PageUtils;
import com.kaikeba.t31core.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.kaikeba.t31ticket.ticket.dao.CarriageDao;
import com.kaikeba.t31ticket.ticket.entity.CarriageEntity;
import com.kaikeba.t31ticket.ticket.service.CarriageService;


@Service("carriageService")
public class CarriageServiceImpl extends ServiceImpl<CarriageDao, CarriageEntity> implements CarriageService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CarriageEntity> page = this.page(
                new Query<CarriageEntity>().getPage(params),
                new QueryWrapper<CarriageEntity>()
        );

        return new PageUtils(page);
    }



}